package com.zxmc.server.mapper;

import com.zxmc.pojo.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CommentMapper {
    @Select("select * from comment where user_id=#{userId} and novel_id=#{novelId};")
    Comment list(@Param("userId") Integer userId, @Param("novelId") Integer novelId);
}
